import { default as request, cloud } from '@/framework/utils/request'
const XM_MANAGE = '/manageRec/project'
export default ({
  // 项目管理
  getXM_MANAGEList(data) {
    return request({
      url: `${cloud.investment}${XM_MANAGE}/page`,
      method: 'post',
      data
    })
  },
  importXM_MANAGEYQ(data) {
    return request({
      url: `${cloud.investment}${XM_MANAGE}/import`,
      method: 'post',
      data,
      headers: {
        'Content-Type': 'multipart/form-data'
      }
    })
  },
  importXM_MANAGE(data) {
    return request({
      url: `${cloud.investment}${XM_MANAGE}/importNo`,
      method: 'post',
      data,
      headers: {
        'Content-Type': 'multipart/form-data'
      }
    })
  },
  exportXM_MANAGEYQ(data) {
    return request({
      url: `${cloud.investment}${XM_MANAGE}/export`,
      method: 'post',
      data,
      responseType: 'arraybuffer'
    })
  },
  exportXM_MANAGE(data) {
    return request({
      url: `${cloud.investment}${XM_MANAGE}/exportNo`,
      method: 'post',
      data,
      responseType: 'arraybuffer'
    })
  },
  downloadXM_MANAGEYQ() {
    return request({
      url: `${cloud.investment}${XM_MANAGE}/stencil`,
      method: 'post',
      responseType: 'arraybuffer'
    })
  },
  downloadXM_MANAGE() {
    return request({
      url: `${cloud.investment}${XM_MANAGE}/stencilNo`,
      method: 'post',
      responseType: 'arraybuffer'
    })
  },
  gethistoryXM_MANAGEState(data){
    return request({
      url: `${cloud.investment}${XM_MANAGE}/stateDetail`,
      method: 'post',
      data
    })
  }
})
